package com.dosen.api.third.party.cmp.model;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @version V1.0
 * @author: guangcheng
 * @date: 2023/1/12 14:20
 * @description:
 */
@NoArgsConstructor
@Data
public class CmpResult {

    /**
     * success
     */
    @JSONField(name = "success")
    public Boolean success;
    /**
     * status
     */
    @JSONField(name = "status")
    public Object status;
    /**
     * message
     */
    @JSONField(name = "message")
    public String message;
    /**
     * errorMsg
     */
    @JSONField(name = "errorMsg")
    public Object errorMsg;
    /**
     * data
     */
    @JSONField(name = "data")
    public Object data;
    /**
     * solution
     */
    @JSONField(name = "solution")
    public Object solution;
    /**
     * failed
     */
    @JSONField(name = "failed")
    public Boolean failed;

    @Override
    public String toString() {
        return "CmpResult{" +
                "success=" + success +
                ", status=" + JSON.toJSONString(status) +
                ", message='" + message + '\'' +
                ", errorMsg=" + JSON.toJSONString(errorMsg) +
                ", data=" + JSON.toJSONString(data) +
                ", solution=" + JSON.toJSONString(solution) +
                ", failed=" + failed +
                '}';
    }
}

